/**
 * 订单状态枚举
 */
export const OrderStatus = {
    /** 已下单 */
    ORDERED: 10,
    /** 已匹配 */
    MATCHED: 20,
    /** 已出发 */
    DEPARTED: 30,
    /** 已到达 */
    ARRIVED: 40,
    /** 已支付 */
    PAID: 50
} as const

/**
 * 获取订单状态文本
 */
export const getOrderStatusText = (status: number): string => {
    switch (status) {
        case OrderStatus.ORDERED:
            return '已下单'
        case OrderStatus.MATCHED:
            return '已匹配'
        case OrderStatus.DEPARTED:
            return '已出发'
        case OrderStatus.ARRIVED:
            return '已到达'
        case OrderStatus.PAID:
            return '已支付'
        default:
            return '-'
    }
}

/**
 * 监管部门类型枚举
 */
export const DepartmentType = {
    /** 交通部 */
    TRAFFIC: 1,
    /** 地方监管部门 */
    LOCAL: 2,
    /** 其他监管部门 */
    OTHER: 3,
    /** 网安监管部门 */
    NETWORK: 4,
    /** 地方监管其他部门 */
    LOCAL_OTHER: 5
} as const

/**
 * 获取监管部门类型文本
 */
export const getDepartmentTypeText = (type: number): string => {
    switch (type) {
        case DepartmentType.TRAFFIC:
            return '交通部'
        case DepartmentType.LOCAL:
            return '地方监管部门'
        case DepartmentType.OTHER:
            return '其他监管部门'
        case DepartmentType.NETWORK:
            return '网安监管部门'
        case DepartmentType.LOCAL_OTHER:
            return '地方监管其他部门'
        default:
            return '-'
    }
}